let initState:{
    cateList:CateItem[]
} = {
    cateList:[]
}
function cateReducer(state=initState,action:CateAction){
    let newState = JSON.parse(JSON.stringify(state));
    switch(action.type){
        case "GET_CATE_LIST":
            newState.cateList = action.cateList;
            return newState;
        default :
            return state
    }
}

export default cateReducer;